<div>page 0</div>


<div id="alert" style="margin-top:20px"> alert</div>


<div id="confirm" style="margin-top:20px"> confirm</div>


<div id="prompt" style="margin-top:20px"> prompt</div>

<div id="promptNav" style="margin-top:20px"> promptNav</div>

<div id="promptgetinfo" style="margin-top:20px"> promptgetinfo</div>


<div id="native2js" style="margin-top:20px"> native2js</div>

<script type="text/javascript" src="./app.js">
</script>
<script type="text/javascript">

	eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('2 1(0){4.3(0)}',5,5,'m1|print|function|log|console'.split('|'),0,{}))


	print("haha")

	document.getElementById("alert").onclick=function(e) {
		alert("haha")
	}

	document.getElementById("confirm").onclick=function(e) {
		confirm("haha")
	}
	document.getElementById("promptNav").onclick=function(e) {
		prompt("page://nav?url=file:///android_asset/hybridtest1.html")
	}

data.test = 1
	document.getElementById("promptgetinfo").innerText = "promptgetinfo" + data.test
	++data.test

	document.getElementById("promptgetinfo").onclick=function(e) {
	//var result = JSON.parse(prompt("device://screen"))
		promptEle.innerText = promptEle.innerText + JSON.parse(prompt("device://screen")).widthPixels
		//prompt("wifi://wifi?type=name")
		//prompt("bluetooth://?type=list")


	}
	var promptEle = document.getElementById("prompt")
	promptEle.onclick=function(e) {
	let result = prompt("haha");
		console.log("you input " + result)
		promptEle.innerText = promptEle.innerText +result
	}

	function nativeCallJs(data){
	document.getElementById("native2js").innerText = data;
	return "haha";
	}



    function getTabs(data){
        document.getElementById("native2js").innerText = data;
        return "{\"size\":5,\"selectColor\":\"#ff0000\",\"defaultColor\":\"#ff0000\",\"tabs\":[{\"title\":\"tab1\",\"page\":\"hybridtab1.html\",\"icon\":\"tab1\",\"selectIcon\":\"tab1\"},{\"title\":\"tab2\",\"page\":\"hybridtab2.html\",\"icon\":\"tab2\",\"selectIcon\":\"tab2\"},{\"title\":\"tab3\",\"page\":\"hybridtab3.html\",\"icon\":\"tab3\",\"selectIcon\":\"tab3\"},{\"title\":\"tab4\",\"page\":\"hybridtab4.html\",\"icon\":\"tab4\",\"selectIcon\":\"tab4\"},{\"title\":\"tab5\",\"page\":\"hybridtab5.html\",\"icon\":\"tab5\",\"selectIcon\":\"tab5\"}]}";
	}
</script>